<template>
  <textarea v-model="val" @input="send"></textarea>
</template>

<script>
export default {
  data() {
    return {
      val: "使用范例：\n # hello",
    };
  },
  methods: {
    send() {
      this.$bus.$emit("ren", this.val);
    },
  },
};
</script>

<style scoped>
textarea {
  height: 200px;
  width: 500px;
  resize: none;
  box-sizing: border-box;
  border: 1px solid black;
  background-color: #fff;
}
</style>
